<template>
  <div class="notification-page">
    <second-router router-key="/notice" :nav-items="navItems"></second-router>
  </div>
</template>

<script>
import SecondRouter from "@/layout/second-router/index";
export default {
  components: {
    SecondRouter
  },
// {
//   path: 'sys',
//     component: () => import('@/views/notification/sys/index'),
//   meta: { title: '系统公告', icon: 'form' }
//   path: 'news',
//     component: () => import('@/views/notification/news/index'),
//   meta: { title: '消息提醒', icon: 'form' }
//   path: 'feedback',
//     component: () => import('@/views/notification/feedback/index'),
//   meta: { title: '问题反馈', icon: 'form' }
//   path: 'feedback/add',
//     component: () => import('@/views/notification/feedback/add'),
//   meta: { title: '新增反馈', icon: 'form' }
//   path: 'feedback/info',
//     component: () => import('@/views/notification/feedback/add'),
//   meta: { title: '问题反馈', icon: 'form' }
  props: {},
  data() {
    return {
      navItems:[
        { title: "系统公告", path: "/sys" },
        { title: "消息提醒", path: "/news" },
        { title: "问题反馈", path: "/feedback" },
      ]
    };
  },
  watch: {},
  computed: {},
  methods: {},
  created() {
    let userInfo = this.$store.getters.userInfo;
    if(userInfo.role==5||userInfo.role==1){
      this.navItems = [
        { title: "帮助信息", path: "/help" },
        { title: "系统公告", path: "/sys" },
        { title: "问题反馈", path: "/feedback" },
      ]
    }else{
      this.navItems = [
        // { title: "帮助信息", path: "/help" },
        { title: "系统公告", path: "/sys" },
        { title: "消息提醒", path: "/news" },
        { title: "问题反馈", path: "/feedback" },
      ]
    }
  },
  mounted() {

  }
};
</script>
<style lang="scss" scoped>

</style>
